package com.jungle.app.repository;

import com.jungle.system.domain.SysOss;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SysOssRepository extends JpaRepository<SysOss, Long>, JpaSpecificationExecutor<SysOss> {

    @Query("select fileName as fileName from SysOss where originalName=?1")
    String findByFileName(String originalName);
}
